function MainFrom(AMCBPlayer) {
    const minPos = AMCBPlayer.data.pos[0];
    const maxPos = AMCBPlayer.data.pos[1];
    let sendButtons = ["显示选区", "复制选区"];
    let butImages = ["", ""];
    if (AMCBPlayer.copy_palette) {
        sendButtons.push("粘贴");
        butImages.push("");
    }
    AMCBPlayer.player().sendSimpleForm('AMCBuilder', `当前Pos1: ${minPos ? minPos.join(', ') : '未选择'}\n当前Pos2: ${maxPos ? maxPos.join(', ') : '未选择'}\n当前选区大小: ${AMCBPlayer.ReginSize}`, sendButtons, butImages, function(player, id){
        switch(id) {
			case 0: {
                AMCBPlayer.showRegin();
                break;
            }
			case 1: {
                AMCBPlayer.player().runcmd('amcb copy');
                break;
            }
			case 2: {
                AMCBPlayer.player().runcmd('amcb paste');
                break;
            }
        }
    });
}
export {
    MainFrom
};